package com.zq.designpaterns.behavior.mediator;

/**
 * ================================================
 * 作    者：程志强
 * 邮    箱：cheng.zhiqiang@cesgroup.com.cn
 * 版    本：1.0.0
 * 创建日期：2021/01/14  11:33
 * 修改日期：
 * 描    述：
 * 修订历史：
 * ================================================
 */
public class User {
    private String name;

    public User(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void sendMsg(String msg) {
        ChatRoom.showMsg(this, msg);
    }
}
